﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class ItemData : MonoBehaviour
{
    public bool IsTrigger = false;
    public Image Icon;
    public Text Count;
    public int index = 0;
    public void SetData(Sprite spr,string count,int mIndex = 0)
    {
        this.Icon.sprite = spr;
        this.Count.text = count;
        this.index = mIndex;
    }

    private void OnCollisionEnter2D(Collision2D collision)
    {
        if (!this.IsTrigger) return;
        // 将自己隐藏并且将自己移动到滑动列表的底部，且重新对其进行赋值


    }
}
